/*
 * #%L
 * Interface
 * %%
 * Copyright (C) 2011 Ractoc.com
 * %%
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */
//CHECKSTYLE:OFF

package com.ractoc.opengamefinder.api.translators;

/**
 * Class to translate between two beans.
 * @author Mark Schrijver
 * @version 1.0
 */
public final class TranslateChatCreateRoomNetworkMessageResultToChatLineMessageResult implements com.ractoc.opengamefinder.api.translators.Translator {

    /**
     * Constructor.
     */
    public TranslateChatCreateRoomNetworkMessageResultToChatLineMessageResult() {
    }

    /**
     * Translation method. Translates com.ractoc.opengamefinder.api.results.network.ChatCreateRoomNetworkMessageResult
     * into com.ractoc.opengamefinder.api.results.ChatLineMessageResult.
     * @param beanInParam bean to translate.
     * @return translated parameter.
     */
    public Object translate(final Object beanInParam) {
        final com.ractoc.opengamefinder.api.results.network.ChatCreateRoomNetworkMessageResult beanIn =
                (com.ractoc.opengamefinder.api.results.network.ChatCreateRoomNetworkMessageResult) beanInParam;
        final com.ractoc.opengamefinder.api.results.ChatLineMessageResult beanOut =
                new com.ractoc.opengamefinder.api.results.ChatLineMessageResult();
        beanOut.setRoomId(beanIn.getRoomId());
        beanOut.setErrorCode(beanIn.getErrorCode());
        return beanOut;
    }

//====Missing in com.ractoc.opengamefinder.api.results.ChatLineMessageResult
//

//====Missing in com.ractoc.opengamefinder.api.results.network.ChatCreateRoomNetworkMessageResult
//getDestinationPlugin has no setter in com.ractoc.opengamefinder.api.results.ChatLineMessageResult
//getOriginPlugin has no setter in com.ractoc.opengamefinder.api.results.ChatLineMessageResult
//getClass has no setter in com.ractoc.opengamefinder.api.results.ChatLineMessageResult
//

}
//CHECKSTYLE:ON

